package com.chaopei.providerserver.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author yws
 * @Date 2022/4/26 16:15
 */
@RestController
public class MyController {
    @RequestMapping("/give")
    public List<String> give(@RequestParam("info") String info){
        System.out.println("收到参数数据："+info);
        List<String> list = new ArrayList<String>();
        list.add("一江春水");
        list.add("二泉映月");
        list.add("三山五岳");
        list.add("四季如春，要了命了");
        return list;
    }
}
